<template>
  <div></div>
</template>

<script setup>
import { useRoute, useRouter } from "vue-router";
import { payOrderByAlipay } from "@/api/mall/client/order/order";
const route = useRoute();
// 获取路由参数
const query = route.query;

// 调用支付
const goPayment = async () => {
  console.log(query.orderSn);
  const res = await payOrderByAlipay(query.orderSn);
  document.write(res.msg);
};

goPayment();
</script>
